package com.mh.web.test;

import javax.validation.constraints.NotNull;

public class User {

    @NotNull(message = "ID不能为空")
    private String uid;
    private String uname;

    //无参,有参,get,set
    public User() {
    }

    public User(String uid, String uname) {
        this.uid = uid;
        this.uname = uname;
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public String getUname() {
        return uname;
    }

    public void setUname(String uname) {
        this.uname = uname;
    }
}
